package dwz.business.lotto;

import java.util.List;

import javax.swing.ListModel;

import dwz.persistence.beans.YongHu;
import dwz.persistence.beans.YongHuExample;
import dwz.persistence.beans.ZhuDan;
import dwz.web.vo.Ids;

public interface YongHuInterface extends BaseInterface<YongHu, YongHuExample>{
	/**
	 * 投注  
	 * @param userId 用户id
	 * @param haomas	投注的号码
	 */
	public void xiaZhu(Integer userId,String[] haomas,Float jinEr,String ip) throws Exception;
	
	/**
	 * 退码
	 * @param userId
	 * @param haomasIds 号码ids
	 */
	public void tuiMa(Integer userId,Integer[] haomasIds) throws Exception;
	
	
	/**
	 * 批量删除未成功号码
	 * @param haomasIds
	 */
	public void deleteUnsuccessfulNumber(Integer[] haomasIds) throws Exception;
	
	
	
	
	/**
	 * 根据用户来获得id
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public YongHu findUserById(Integer userId) throws Exception;
	
	
	
	/**
	 * 判断是否是合法用户，包括是否停用。
	 * @param userName
	 * @param password
	 * @return
	 */
	public boolean isValidateUser(String userName,String password);
	
	
	/**
	 * 修改密码
	 * @param oldPassword
	 * @param newPasswor
	 * @return
	 */
	public String modifyPassword(Integer userId,String oldPassword,String newPasswor);
	
	
	
	
	 /**
     * 根据当前id来查询一连串的id
     * @param userid
     * @return
     */
    public Ids selectAllIds(int userid);
}
